package com.pn.mapper;

import com.pn.entity.Purchase;
import com.pn.page.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseMapper {


    //添加采购单
    int insertPurchase(Purchase purchase);

    //统计查询的采购单的总记录条数
    int countPurchase(Purchase purchase);

    //查询采购列表
    List<Purchase> findAllPurchase(@Param("purchase") Purchase purchase, @Param("page") Page page);

    //删除采购单记录
    int deletePurchaseByBid(Integer buyId);

    //更新预计采购数量和实际采购数量
    int updatePurchaseNumByBid(Purchase purchase);

    //修改入库状态为1
    int updateIsInStateBid(Integer bid);





}
